import { Post } from '../utils/request';
import {loginUrl, logoutUrl, userInfoUrl} from '../utils/url';

export const login = (stuID) => {
  const form = new FormData();
  form.append('stuid', stuID);

  return Post(loginUrl, form);
};

export const userInfo = () => {
  return Post(userInfoUrl);
};

export const logout = () => {
  return Post(logoutUrl);
};
